/*
 * Copyright (c) 2006 - 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.util.concurrent.Callable;

/**
 * <p>Project: app2022 - T3
 * <p>Powered by webrx On 2022-01-27 09:50:03
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class T3 implements Callable<Integer> {
    private int i = 0;

    public T3() {
        this.i = 11;
    }

    public T3(int i) {
        this.i = i;
    }

    @Override
    public Integer call() throws Exception {
        try {
            System.out.printf("正在计算%d平方,请稍后。%n", this.i);
            Thread.sleep(5000);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return this.i * this.i;
    }
}
